package foodmaterial.entity;

import foodmaterial.action.valid.ObjectNullValid;

import javax.validation.constraints.DecimalMax;
import javax.validation.constraints.DecimalMin;
import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import java.io.Serializable;
import java.math.BigDecimal;

public class MealsType implements Serializable {
    private static final long serialVersionUID = -855453168308539256L;

    private Long id;

    @ObjectNullValid(message = "餐别名称不能为空")
    @Min(value = 1,message = "餐别最小为1")
    private Long mealsTypeNameId ;
    private String mealsTypeName ;//'名称',
    @DecimalMin(value = "0.01",message = "单价最低为0.01")
    @DecimalMax(value = "200",message = "单价最高为200")
    private BigDecimal mealStandard ;// '餐标',
    @Min(value = 1,message = "就餐人数最少是1人")
    @Max(value = 100000,message = "就餐人数最多是100000人")
    private Integer mealPersons ;//'就餐人数'
    @ObjectNullValid(message = "配送客户不能为空")
    @Min(value = 1,message = "配送客户最小为1")
    private Long customerId;// '配送客户id',
    private String customerName ;
    private String customerCode ;
    private String routerName ;
    private String customerType ;
    private String templateName ;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getMealsTypeNameId() {
        return mealsTypeNameId;
    }

    public void setMealsTypeNameId(Long mealsTypeNameId) {
        this.mealsTypeNameId = mealsTypeNameId;
    }

    public String getMealsTypeName() {
        return mealsTypeName;
    }

    public void setMealsTypeName(String mealsTypeName) {
        this.mealsTypeName = mealsTypeName;
    }

    public BigDecimal getMealStandard() {
        return mealStandard;
    }

    public void setMealStandard(BigDecimal mealStandard) {
        this.mealStandard = mealStandard;
    }

    public Long getCustomerId() {
        return customerId;
    }

    public void setCustomerId(Long customerId) {
        this.customerId = customerId;
    }

    public String getCustomerName() {
        return customerName;
    }

    public void setCustomerName(String customerName) {
        this.customerName = customerName;
    }

    public String getCustomerCode() {
        return customerCode;
    }

    public void setCustomerCode(String customerCode) {
        this.customerCode = customerCode;
    }

    public String getRouterName() {
        return routerName;
    }

    public void setRouterName(String routerName) {
        this.routerName = routerName;
    }

    public String getCustomerType() {
        return customerType;
    }

    public void setCustomerType(String customerType) {
        this.customerType = customerType;
    }

    public Integer getMealPersons() {
        return mealPersons;
    }

    public void setMealPersons(Integer mealPersons) {
        this.mealPersons = mealPersons;
    }

    public String getTemplateName() {
        return templateName;
    }

    public void setTemplateName(String templateName) {
        this.templateName = templateName;
    }
}
